/*     */ import java.awt.BorderLayout;
/*     */ import java.awt.Container;
/*     */ import java.awt.Dimension;
/*     */ import java.awt.Font;
/*     */ import java.awt.Insets;
/*     */ import java.awt.Point;
/*     */ import java.awt.event.ActionEvent;
/*     */ import java.awt.event.ActionListener;
/*     */ import javax.swing.Box;
/*     */ import javax.swing.BoxLayout;
/*     */ import javax.swing.JButton;
/*     */ import javax.swing.JDialog;
/*     */ import javax.swing.JFrame;
/*     */ import javax.swing.JPanel;
/*     */ import javax.swing.JScrollPane;
/*     */ import javax.swing.JViewport;
/*     */ 
/*     */ public class MainPanel extends JPanel
/*     */   implements ActionListener
/*     */ {
/*     */   private SymQuotes sq;
/*  13 */   private float xScale = 1.0F;
/*  14 */   private float yScale = 1.0F;
/*  15 */   private JPanel barP = new JPanel(new BorderLayout());
/*  16 */   private JPanel volumeP = new JPanel(new BorderLayout());
/*  17 */   private JPanel macdP = new JPanel(new BorderLayout());
/*  18 */   private JPanel ppoP = new JPanel(new BorderLayout());
/*  19 */   private JPanel stochP = new JPanel(new BorderLayout());
/*  20 */   private JPanel rocP = new JPanel(new BorderLayout());
/*  21 */   private JPanel efiP = new JPanel(new BorderLayout());
/*  22 */   private JPanel pvtP = new JPanel(new BorderLayout());
/*  23 */   private JPanel obvP = new JPanel(new BorderLayout());
/*  24 */   private JPanel mfiP = new JPanel(new BorderLayout());
/*  25 */   private JPanel cciP = new JPanel(new BorderLayout());
/*  26 */   private JPanel rsiP = new JPanel(new BorderLayout());
/*  27 */   private JPanel wrP = new JPanel(new BorderLayout());
/*  28 */   private JPanel dmiP = new JPanel(new BorderLayout());
/*  29 */   private JPanel bbiP = new JPanel(new BorderLayout());
/*  30 */   private JPanel cstickP = new JPanel(new BorderLayout());
/*     */   private JScrollPane barSP;
/*     */   private JScrollPane volumeSP;
/*     */   private JScrollPane macdSP;
/*     */   private JScrollPane ppoSP;
/*     */   private JScrollPane stochSP;
/*     */   private JScrollPane rocSP;
/*     */   private JScrollPane efiSP;
/*     */   private JScrollPane pvtSP;
/*     */   private JScrollPane obvSP;
/*     */   private JScrollPane mfiSP;
/*     */   private JScrollPane cciSP;
/*     */   private JScrollPane rsiSP;
/*     */   private JScrollPane wrSP;
/*     */   private JScrollPane dmiSP;
/*     */   private JScrollPane bbiSP;
/*     */   private JScrollPane cstickSP;
/*     */   private BarChart bc;
/*     */   private VolumeChart vc;
/*     */   private MACDChart macdc;
/*     */   private PPOChart ppoc;
/*     */   private StochChart stochc;
/*     */   private ROCChart rocc;
/*     */   private EFIChart efic;
/*     */   private PVTChart pvtc;
/*     */   private OBVChart obvc;
/*     */   private MFIChart mfic;
/*     */   private CCIChart ccic;
/*     */   private RSIChart rsic;
/*     */   private WRChart wrc;
/*     */   private DMIChart dmic;
/*     */   private BBIChart bbic;
/*     */   private CandleStickChart cstickc;
/*     */   private JButton chgParmOk;
/*     */   private JButton chgParmCancel;
/*     */   private JButton defaultParms;
/*     */   private JDialog chgParmDialog;
/*     */   private JButton[] chgParmButton;
/*     */ 
/*     */   public MainPanel(SymQuotes paramSymQuotes)
/*     */   {
/*  58 */     this.sq = paramSymQuotes;
/*  59 */     setLayout(new BoxLayout(this, 3));
/*     */ 
/*  61 */     this.bc = new BarChart(paramSymQuotes);
/*  62 */     this.barSP = new JScrollPane(this.bc);
/*  63 */     this.barSP.setVerticalScrollBarPolicy(22);
/*  64 */     this.barSP.setHorizontalScrollBarPolicy(32);
/*  65 */     this.barSP.setPreferredSize(new Dimension(870, 245));
/*  66 */     this.barSP.setMinimumSize(new Dimension(870, 245));
/*  67 */     this.barSP.setMaximumSize(new Dimension(870, 245));
/*  68 */     this.barSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 30.0F)));
/*     */ 
/*  70 */     this.barP.add(this.barSP, "West");
/*  71 */     this.barP.add(this.bc.ep, "Center");
/*     */ 
/*  73 */     this.vc = new VolumeChart(paramSymQuotes, 5, 10);
/*  74 */     this.volumeSP = new JScrollPane(this.vc);
/*  75 */     setupChartSP(this.volumeSP);
/*  76 */     this.volumeP.add(this.volumeSP, "West");
/*  77 */     this.volumeP.add(this.vc.ep, "Center");
/*     */ 
/*  79 */     this.macdc = new MACDChart(paramSymQuotes, 12, 26, 9);
/*  80 */     this.macdSP = new JScrollPane(this.macdc);
/*  81 */     setupChartSP(this.macdSP);
/*  82 */     this.macdP.add(this.macdSP, "West");
/*  83 */     this.macdP.add(this.macdc.ep, "Center");
/*     */ 
/*  85 */     this.ppoc = new PPOChart(paramSymQuotes, 3, 12, 6);
/*  86 */     this.ppoSP = new JScrollPane(this.ppoc);
/*  87 */     setupChartSP(this.ppoSP);
/*  88 */     this.ppoP.add(this.ppoSP, "West");
/*  89 */     this.ppoP.add(this.ppoc.ep, "Center");
/*     */ 
/*  91 */     this.stochc = new StochChart(paramSymQuotes, 10, 5, 5);
/*  92 */     this.stochSP = new JScrollPane(this.stochc);
/*  93 */     setupChartSP(this.stochSP);
/*  94 */     this.stochP.add(this.stochSP, "West");
/*  95 */     this.stochP.add(this.stochc.ep, "Center");
/*     */ 
/*  97 */     this.rocc = new ROCChart(paramSymQuotes, 10, 8);
/*  98 */     this.rocSP = new JScrollPane(this.rocc);
/*  99 */     setupChartSP(this.rocSP);
/* 100 */     this.rocP.add(this.rocSP, "West");
/* 101 */     this.rocP.add(this.rocc.ep, "Center");
/*     */ 
/* 103 */     this.efic = new EFIChart(paramSymQuotes, 10, 5);
/* 104 */     this.efiSP = new JScrollPane(this.efic);
/* 105 */     setupChartSP(this.efiSP);
/* 106 */     this.efiP.add(this.efiSP, "West");
/* 107 */     this.efiP.add(this.efic.ep, "Center");
/*     */ 
/* 109 */     this.pvtc = new PVTChart(paramSymQuotes, 12);
/* 110 */     this.pvtSP = new JScrollPane(this.pvtc);
/* 111 */     setupChartSP(this.pvtSP);
/* 112 */     this.pvtP.add(this.pvtSP, "West");
/* 113 */     this.pvtP.add(this.pvtc.ep, "Center");
/*     */ 
/* 115 */     this.obvc = new OBVChart(paramSymQuotes, 12);
/* 116 */     this.obvSP = new JScrollPane(this.obvc);
/* 117 */     setupChartSP(this.obvSP);
/* 118 */     this.obvP.add(this.obvSP, "West");
/* 119 */     this.obvP.add(this.obvc.ep, "Center");
/*     */ 
/* 121 */     this.mfic = new MFIChart(paramSymQuotes, 14, 10);
/* 122 */     this.mfiSP = new JScrollPane(this.mfic);
/* 123 */     setupChartSP(this.mfiSP);
/* 124 */     this.mfiP.add(this.mfiSP, "West");
/* 125 */     this.mfiP.add(this.mfic.ep, "Center");
/*     */ 
/* 127 */     this.ccic = new CCIChart(paramSymQuotes, 15, 7);
/* 128 */     this.cciSP = new JScrollPane(this.ccic);
/* 129 */     setupChartSP(this.cciSP);
/* 130 */     this.cciP.add(this.cciSP, "West");
/* 131 */     this.cciP.add(this.ccic.ep, "Center");
/*     */ 
/* 133 */     this.rsic = new RSIChart(paramSymQuotes, 14, 10);
/* 134 */     this.rsiSP = new JScrollPane(this.rsic);
/* 135 */     setupChartSP(this.rsiSP);
/* 136 */     this.rsiP.add(this.rsiSP, "West");
/* 137 */     this.rsiP.add(this.rsic.ep, "Center");
/*     */ 
/* 139 */     this.wrc = new WRChart(paramSymQuotes, 10);
/* 140 */     this.wrSP = new JScrollPane(this.wrc);
/* 141 */     setupChartSP(this.wrSP);
/* 142 */     this.wrP.add(this.wrSP, "West");
/* 143 */     this.wrP.add(this.wrc.ep, "Center");
/*     */ 
/* 145 */     this.dmic = new DMIChart(paramSymQuotes, 14, 14);
/* 146 */     this.dmiSP = new JScrollPane(this.dmic);
/* 147 */     setupChartSP(this.dmiSP);
/* 148 */     this.dmiP.add(this.dmiSP, "West");
/* 149 */     this.dmiP.add(this.dmic.ep, "Center");
/*     */ 
/* 151 */     BBIInterface[] arrayOfBBIInterface = { this.bc, this.macdc, this.ppoc, this.stochc, this.rocc, this.efic, this.pvtc, this.obvc, this.mfic, this.ccic, this.rsic, this.wrc, this.dmic };
/*     */ 
/* 153 */     this.bbic = new BBIChart(paramSymQuotes, 3, 5, arrayOfBBIInterface);
/* 154 */     this.bbiSP = new JScrollPane(this.bbic);
/* 155 */     setupChartSP(this.bbiSP);
/* 156 */     this.bbiP.add(this.bbiSP, "West");
/* 157 */     this.bbiP.add(this.bbic.ep, "Center");
/*     */ 
/* 159 */     this.cstickc = new CandleStickChart(paramSymQuotes, this.bbic.getNoOfBullish(paramSymQuotes.count - 1), 20, 2, 20, 6);
/* 160 */     this.cstickSP = new JScrollPane(this.cstickc);
/* 161 */     this.cstickSP.setVerticalScrollBarPolicy(22);
/* 162 */     this.cstickSP.setHorizontalScrollBarPolicy(32);
/* 163 */     this.cstickSP.setPreferredSize(new Dimension(870, 245));
/* 164 */     this.cstickSP.setMinimumSize(new Dimension(870, 245));
/* 165 */     this.cstickSP.setMaximumSize(new Dimension(870, 245));
/* 166 */     this.cstickSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 30.0F)));
/*     */ 
/* 168 */     this.cstickP.add(this.cstickSP, "West");
/* 169 */     this.cstickP.add(this.cstickc.ep, "Center");
/*     */ 
/* 171 */     addChgParmButtons();
/*     */ 
/* 174 */     add(this.cstickP);
/* 175 */     add(this.barP);
/* 176 */     add(this.volumeP);
/* 177 */     add(this.bbiP);
/* 178 */     add(this.macdP);
/* 179 */     add(this.ppoP);
/* 180 */     add(this.stochP);
/* 181 */     add(this.rocP);
/* 182 */     add(this.efiP);
/* 183 */     add(this.pvtP);
/* 184 */     add(this.obvP);
/* 185 */     add(this.mfiP);
/* 186 */     add(this.cciP);
/* 187 */     add(this.rsiP);
/* 188 */     add(this.wrP);
/* 189 */     add(this.dmiP);
/*     */   }
/*     */ 
/*     */   private void setupChartSP(JScrollPane paramJScrollPane)
/*     */   {
/* 198 */     paramJScrollPane.setVerticalScrollBarPolicy(22);
/* 199 */     paramJScrollPane.setHorizontalScrollBarPolicy(32);
/* 200 */     paramJScrollPane.setPreferredSize(new Dimension(870, 145));
/* 201 */     paramJScrollPane.setMinimumSize(new Dimension(870, 145));
/* 202 */     paramJScrollPane.setMaximumSize(new Dimension(870, 145));
/* 203 */     paramJScrollPane.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/*     */   }
/*     */ 
/*     */   public void redrawCharts(SymQuotes paramSymQuotes)
/*     */   {
/* 210 */     this.sq = paramSymQuotes;
/* 211 */     this.bc.redrawChart(paramSymQuotes);
/* 212 */     this.vc.redrawChart(paramSymQuotes);
/* 213 */     this.macdc.redrawChart(paramSymQuotes);
/* 214 */     this.ppoc.redrawChart(paramSymQuotes);
/* 215 */     this.stochc.redrawChart(paramSymQuotes);
/* 216 */     this.rocc.redrawChart(paramSymQuotes);
/* 217 */     this.efic.redrawChart(paramSymQuotes);
/* 218 */     this.pvtc.redrawChart(paramSymQuotes);
/* 219 */     this.obvc.redrawChart(paramSymQuotes);
/* 220 */     this.mfic.redrawChart(paramSymQuotes);
/* 221 */     this.ccic.redrawChart(paramSymQuotes);
/* 222 */     this.rsic.redrawChart(paramSymQuotes);
/* 223 */     this.wrc.redrawChart(paramSymQuotes);
/* 224 */     this.dmic.redrawChart(paramSymQuotes);
/* 225 */     this.bbic.redrawChart(paramSymQuotes);
/* 226 */     this.cstickc.redrawChart(paramSymQuotes, this.bbic.getNoOfBullish(paramSymQuotes.count - 1));
/*     */   }
/*     */ 
/*     */   public void changeNoOfDays(int paramInt)
/*     */   {
/* 233 */     this.cstickc.changeNoOfDays(paramInt);
/* 234 */     this.bc.changeNoOfDays(paramInt);
/* 235 */     this.vc.changeNoOfDays(paramInt);
/* 236 */     this.bbic.changeNoOfDays(paramInt);
/* 237 */     this.macdc.changeNoOfDays(paramInt);
/* 238 */     this.ppoc.changeNoOfDays(paramInt);
/* 239 */     this.stochc.changeNoOfDays(paramInt);
/* 240 */     this.rocc.changeNoOfDays(paramInt);
/* 241 */     this.efic.changeNoOfDays(paramInt);
/* 242 */     this.pvtc.changeNoOfDays(paramInt);
/* 243 */     this.obvc.changeNoOfDays(paramInt);
/* 244 */     this.mfic.changeNoOfDays(paramInt);
/* 245 */     this.ccic.changeNoOfDays(paramInt);
/* 246 */     this.rsic.changeNoOfDays(paramInt);
/* 247 */     this.wrc.changeNoOfDays(paramInt);
/* 248 */     this.dmic.changeNoOfDays(paramInt);
/*     */ 
/* 250 */     this.cstickc.repaint();
/* 251 */     this.bc.repaint();
/* 252 */     this.vc.repaint();
/* 253 */     this.bbic.repaint();
/* 254 */     this.macdc.repaint();
/* 255 */     this.ppoc.repaint();
/* 256 */     this.stochc.repaint();
/* 257 */     this.rocc.repaint();
/* 258 */     this.efic.repaint();
/* 259 */     this.pvtc.repaint();
/* 260 */     this.obvc.repaint();
/* 261 */     this.mfic.repaint();
/* 262 */     this.ccic.repaint();
/* 263 */     this.rsic.repaint();
/* 264 */     this.wrc.repaint();
/* 265 */     this.dmic.repaint();
/*     */   }
/*     */ 
/*     */   public void changeParameters()
/*     */   {
/* 272 */     Font localFont = new Font("Sanserif", 0, 11);
/* 273 */     JFrame localJFrame = new JFrame();
/* 274 */     this.chgParmDialog = new JDialog(localJFrame, "Change Parameters", true);
/* 275 */     Box localBox1 = Box.createVerticalBox();
/* 276 */     Box localBox2 = Box.createHorizontalBox();
/*     */ 
/* 278 */     this.chgParmOk = new JButton("OK");
/* 279 */     this.chgParmOk.setFont(localFont);
/* 280 */     this.chgParmOk.setMargin(new Insets(1, 2, 1, 2));
/* 281 */     this.chgParmOk.addActionListener(this);
/*     */ 
/* 283 */     this.chgParmCancel = new JButton("Cancel");
/* 284 */     this.chgParmCancel.setFont(localFont);
/* 285 */     this.chgParmCancel.setMargin(new Insets(1, 2, 1, 2));
/* 286 */     this.chgParmCancel.addActionListener(this);
/*     */ 
/* 288 */     this.defaultParms = new JButton("Default");
/* 289 */     this.defaultParms.setFont(localFont);
/* 290 */     this.defaultParms.setMargin(new Insets(1, 2, 1, 2));
/* 291 */     this.defaultParms.setToolTipText("Reset to default parameters");
/* 292 */     this.defaultParms.addActionListener(this);
/*     */ 
/* 294 */     localBox2.add(Box.createHorizontalGlue());
/* 295 */     localBox2.add(this.chgParmOk);
/* 296 */     localBox2.add(Box.createHorizontalStrut(5));
/* 297 */     localBox2.add(this.chgParmCancel);
/* 298 */     localBox2.add(Box.createHorizontalStrut(5));
/* 299 */     localBox2.add(this.defaultParms);
/* 300 */     localBox2.add(Box.createHorizontalGlue());
/*     */ 
/* 302 */     localBox1.add(this.cstickc.getBollingerBandsBox(false));
/* 303 */     localBox1.add(Box.createVerticalStrut(5));
/* 304 */     localBox1.add(this.cstickc.getMaEnvelopesBox(false));
/* 305 */     localBox1.add(Box.createVerticalStrut(5));
/* 306 */     localBox1.add(this.bc.getMABox(false, false));
/* 307 */     localBox1.add(Box.createVerticalStrut(5));
/* 308 */     localBox1.add(this.vc.getVolumeBox(false, false));
/* 309 */     localBox1.add(Box.createVerticalStrut(5));
/* 310 */     localBox1.add(this.bbic.getBBIBox(false));
/* 311 */     localBox1.add(Box.createVerticalStrut(5));
/* 312 */     localBox1.add(this.macdc.getMACDBox(false));
/* 313 */     localBox1.add(Box.createVerticalStrut(5));
/* 314 */     localBox1.add(this.ppoc.getPPOBox(false));
/* 315 */     localBox1.add(Box.createVerticalStrut(5));
/* 316 */     localBox1.add(this.stochc.getStochBox(false));
/* 317 */     localBox1.add(Box.createVerticalStrut(5));
/* 318 */     localBox1.add(this.rocc.getROCBox(false));
/* 319 */     localBox1.add(Box.createVerticalStrut(5));
/* 320 */     localBox1.add(this.efic.getEFIBox(false));
/* 321 */     localBox1.add(Box.createVerticalStrut(5));
/* 322 */     localBox1.add(this.pvtc.getPVTBox(false));
/* 323 */     localBox1.add(Box.createVerticalStrut(5));
/* 324 */     localBox1.add(this.obvc.getOBVBox(false));
/* 325 */     localBox1.add(Box.createVerticalStrut(5));
/* 326 */     localBox1.add(this.mfic.getMFIBox(false));
/* 327 */     localBox1.add(Box.createVerticalStrut(5));
/* 328 */     localBox1.add(this.ccic.getCCIBox(false));
/* 329 */     localBox1.add(Box.createVerticalStrut(5));
/* 330 */     localBox1.add(this.rsic.getRSIBox(false));
/* 331 */     localBox1.add(Box.createVerticalStrut(5));
/* 332 */     localBox1.add(this.wrc.getWRBox(false));
/* 333 */     localBox1.add(Box.createVerticalStrut(5));
/* 334 */     localBox1.add(this.dmic.getDMIBox(false));
/*     */ 
/* 336 */     localBox1.add(Box.createVerticalStrut(5));
/* 337 */     localBox1.add(localBox2);
/*     */ 
/* 339 */     this.chgParmDialog.getContentPane().add(localBox1);
/* 340 */     this.chgParmDialog.setSize(250, 450);
/* 341 */     this.chgParmDialog.setLocationRelativeTo(null);
/* 342 */     this.chgParmDialog.setVisible(true);
/*     */   }
/*     */ 
/*     */   private void repaintCharts()
/*     */   {
/* 350 */     this.cstickSP.getViewport().repaint();
/* 351 */     this.cstickSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 30.0F)));
/* 352 */     this.barSP.getViewport().repaint();
/* 353 */     this.barSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(200.0F * this.yScale + 30.0F)));
/* 354 */     this.volumeSP.getViewport().repaint();
/* 355 */     this.volumeSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 356 */     this.bbiSP.getViewport().repaint();
/* 357 */     this.bbiSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 358 */     this.macdSP.getViewport().repaint();
/* 359 */     this.macdSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 360 */     this.ppoSP.getViewport().repaint();
/* 361 */     this.ppoSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 362 */     this.stochSP.getViewport().repaint();
/* 363 */     this.stochSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 364 */     this.rocSP.getViewport().repaint();
/* 365 */     this.rocSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 366 */     this.efiSP.getViewport().repaint();
/* 367 */     this.efiSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 368 */     this.pvtSP.getViewport().repaint();
/* 369 */     this.pvtSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 370 */     this.obvSP.getViewport().repaint();
/* 371 */     this.obvSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 372 */     this.mfiSP.getViewport().repaint();
/* 373 */     this.mfiSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 374 */     this.cciSP.getViewport().repaint();
/* 375 */     this.cciSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 376 */     this.rsiSP.getViewport().repaint();
/* 377 */     this.rsiSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 378 */     this.wrSP.getViewport().repaint();
/* 379 */     this.wrSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/* 380 */     this.dmiSP.getViewport().repaint();
/* 381 */     this.dmiSP.getViewport().setViewPosition(new Point((int)(750.0F * this.xScale + 100.0F), (int)(100.0F * this.yScale + 30.0F)));
/*     */ 
/* 383 */     this.cstickSP.revalidate();
/* 384 */     this.barSP.revalidate();
/* 385 */     this.volumeSP.revalidate();
/* 386 */     this.bbiSP.revalidate();
/* 387 */     this.macdSP.revalidate();
/* 388 */     this.ppoSP.revalidate();
/* 389 */     this.stochSP.revalidate();
/* 390 */     this.rocSP.revalidate();
/* 391 */     this.efiSP.revalidate();
/* 392 */     this.pvtSP.revalidate();
/* 393 */     this.obvSP.revalidate();
/* 394 */     this.mfiSP.revalidate();
/* 395 */     this.cciSP.revalidate();
/* 396 */     this.rsiSP.revalidate();
/* 397 */     this.wrSP.revalidate();
/* 398 */     this.dmiSP.revalidate();
/*     */ 
/* 400 */     repaint();
/*     */   }
/*     */ 
/*     */   public void vZoom(boolean paramBoolean)
/*     */   {
/* 407 */     this.cstickc.vZoom(paramBoolean);
/* 408 */     this.bc.vZoom(paramBoolean);
/* 409 */     this.vc.vZoom(paramBoolean);
/* 410 */     this.bbic.vZoom(paramBoolean);
/* 411 */     this.macdc.vZoom(paramBoolean);
/* 412 */     this.ppoc.vZoom(paramBoolean);
/* 413 */     this.stochc.vZoom(paramBoolean);
/* 414 */     this.rocc.vZoom(paramBoolean);
/* 415 */     this.efic.vZoom(paramBoolean);
/* 416 */     this.pvtc.vZoom(paramBoolean);
/* 417 */     this.obvc.vZoom(paramBoolean);
/* 418 */     this.mfic.vZoom(paramBoolean);
/* 419 */     this.ccic.vZoom(paramBoolean);
/* 420 */     this.rsic.vZoom(paramBoolean);
/* 421 */     this.wrc.vZoom(paramBoolean);
/* 422 */     this.dmic.vZoom(paramBoolean);
/*     */ 
/* 424 */     this.yScale += 0.2F;
/*     */ 
/* 426 */     repaintCharts();
/*     */   }
/*     */ 
/*     */   public void hZoom(boolean paramBoolean)
/*     */   {
/* 433 */     this.cstickc.hZoom(paramBoolean);
/* 434 */     this.bc.hZoom(paramBoolean);
/* 435 */     this.vc.hZoom(paramBoolean);
/* 436 */     this.bbic.hZoom(paramBoolean);
/* 437 */     this.macdc.hZoom(paramBoolean);
/* 438 */     this.ppoc.hZoom(paramBoolean);
/* 439 */     this.stochc.hZoom(paramBoolean);
/* 440 */     this.rocc.hZoom(paramBoolean);
/* 441 */     this.efic.hZoom(paramBoolean);
/* 442 */     this.pvtc.hZoom(paramBoolean);
/* 443 */     this.obvc.hZoom(paramBoolean);
/* 444 */     this.mfic.hZoom(paramBoolean);
/* 445 */     this.ccic.hZoom(paramBoolean);
/* 446 */     this.rsic.hZoom(paramBoolean);
/* 447 */     this.wrc.hZoom(paramBoolean);
/* 448 */     this.dmic.hZoom(paramBoolean);
/*     */ 
/* 450 */     this.xScale += 0.2F;
/*     */ 
/* 452 */     repaintCharts();
/*     */   }
/*     */ 
/*     */   public void resetZoom()
/*     */   {
/* 459 */     this.cstickc.resetZoom();
/* 460 */     this.bc.resetZoom();
/* 461 */     this.vc.resetZoom();
/* 462 */     this.bbic.resetZoom();
/* 463 */     this.macdc.resetZoom();
/* 464 */     this.ppoc.resetZoom();
/* 465 */     this.stochc.resetZoom();
/* 466 */     this.rocc.resetZoom();
/* 467 */     this.efic.resetZoom();
/* 468 */     this.pvtc.resetZoom();
/* 469 */     this.obvc.resetZoom();
/* 470 */     this.mfic.resetZoom();
/* 471 */     this.ccic.resetZoom();
/* 472 */     this.rsic.resetZoom();
/* 473 */     this.wrc.resetZoom();
/* 474 */     this.dmic.resetZoom();
/*     */ 
/* 476 */     this.yScale = 1.0F;
/* 477 */     this.xScale = 1.0F;
/*     */ 
/* 479 */     repaintCharts();
/*     */   }
/*     */ 
/*     */   private void addChgParmButtons()
/*     */   {
/* 489 */     Font localFont = new Font("Sanserif", 0, 11);
/* 490 */     this.chgParmButton = new JButton[14];
/*     */ 
/* 492 */     for (int i = 0; i < 14; i++)
/*     */     {
/* 494 */       this.chgParmButton[i] = new JButton("Chg.Parm.");
/* 495 */       this.chgParmButton[i].setFont(localFont);
/* 496 */       this.chgParmButton[i].setMargin(new Insets(1, 2, 1, 2));
/* 497 */       this.chgParmButton[i].addActionListener(this);
/*     */     }
/*     */ 
/* 501 */     this.chgParmButton[0].setToolTipText("Change MA parameters.");
/* 502 */     this.bc.ep.buttonsPanel.add(this.chgParmButton[0]);
/*     */ 
/* 504 */     this.chgParmButton[1].setToolTipText("Change MACD parameters.");
/* 505 */     this.macdc.ep.buttonsPanel.add(this.chgParmButton[1]);
/*     */ 
/* 507 */     this.chgParmButton[2].setToolTipText("Change PPO parameters.");
/* 508 */     this.ppoc.ep.buttonsPanel.add(this.chgParmButton[2]);
/*     */ 
/* 510 */     this.chgParmButton[3].setToolTipText("Change Stochastic parameters.");
/* 511 */     this.stochc.ep.buttonsPanel.add(this.chgParmButton[3]);
/*     */ 
/* 513 */     this.chgParmButton[4].setToolTipText("Change ROC parameters.");
/* 514 */     this.rocc.ep.buttonsPanel.add(this.chgParmButton[4]);
/*     */ 
/* 516 */     this.chgParmButton[5].setToolTipText("Change EFI parameters.");
/* 517 */     this.efic.ep.buttonsPanel.add(this.chgParmButton[5]);
/*     */ 
/* 519 */     this.chgParmButton[6].setToolTipText("Change PVT parameters.");
/* 520 */     this.pvtc.ep.buttonsPanel.add(this.chgParmButton[6]);
/*     */ 
/* 522 */     this.chgParmButton[7].setToolTipText("Change OBV parameters.");
/* 523 */     this.obvc.ep.buttonsPanel.add(this.chgParmButton[7]);
/*     */ 
/* 525 */     this.chgParmButton[8].setToolTipText("Change MFI parameters.");
/* 526 */     this.mfic.ep.buttonsPanel.add(this.chgParmButton[8]);
/*     */ 
/* 528 */     this.chgParmButton[9].setToolTipText("Change CCI parameters.");
/* 529 */     this.ccic.ep.buttonsPanel.add(this.chgParmButton[9]);
/*     */ 
/* 531 */     this.chgParmButton[10].setToolTipText("Change RSI parameters.");
/* 532 */     this.rsic.ep.buttonsPanel.add(this.chgParmButton[10]);
/*     */ 
/* 534 */     this.chgParmButton[11].setToolTipText("Change William's %R parameters.");
/* 535 */     this.wrc.ep.buttonsPanel.add(this.chgParmButton[11]);
/*     */ 
/* 537 */     this.chgParmButton[12].setToolTipText("Change DMI parameters.");
/* 538 */     this.dmic.ep.buttonsPanel.add(this.chgParmButton[12]);
/*     */ 
/* 540 */     this.chgParmButton[13].setToolTipText("Change BBI parameters.");
/* 541 */     this.bbic.ep.buttonsPanel.add(this.chgParmButton[13]);
/*     */   }
/*     */ 
/*     */   public void actionPerformed(ActionEvent paramActionEvent)
/*     */   {
/* 548 */     if (paramActionEvent.getSource() == this.chgParmOk)
/*     */     {
/* 550 */       if (!this.cstickc.validateParm()) {
/* 551 */         return;
/*     */       }
/* 553 */       if (!this.bc.validateParm()) {
/* 554 */         return;
/*     */       }
/* 556 */       if (!this.vc.validateParm()) {
/* 557 */         return;
/*     */       }
/* 559 */       if (!this.bbic.validateParm()) {
/* 560 */         return;
/*     */       }
/* 562 */       if (!this.macdc.validateParm()) {
/* 563 */         return;
/*     */       }
/* 565 */       if (!this.ppoc.validateParm()) {
/* 566 */         return;
/*     */       }
/* 568 */       if (!this.stochc.validateParm()) {
/* 569 */         return;
/*     */       }
/* 571 */       if (!this.rocc.validateParm()) {
/* 572 */         return;
/*     */       }
/* 574 */       if (!this.efic.validateParm()) {
/* 575 */         return;
/*     */       }
/* 577 */       if (!this.pvtc.validateParm()) {
/* 578 */         return;
/*     */       }
/* 580 */       if (!this.obvc.validateParm()) {
/* 581 */         return;
/*     */       }
/* 583 */       if (!this.mfic.validateParm()) {
/* 584 */         return;
/*     */       }
/* 586 */       if (!this.ccic.validateParm()) {
/* 587 */         return;
/*     */       }
/* 589 */       if (!this.rsic.validateParm()) {
/* 590 */         return;
/*     */       }
/* 592 */       if (!this.wrc.validateParm()) {
/* 593 */         return;
/*     */       }
/* 595 */       if (!this.dmic.validateParm()) {
/* 596 */         return;
/*     */       }
/* 598 */       this.bc.redrawChart();
/* 599 */       this.vc.redrawChart();
/* 600 */       this.macdc.redrawChart();
/* 601 */       this.ppoc.redrawChart();
/* 602 */       this.stochc.redrawChart();
/* 603 */       this.rocc.redrawChart();
/* 604 */       this.efic.redrawChart();
/* 605 */       this.pvtc.redrawChart();
/* 606 */       this.obvc.redrawChart();
/* 607 */       this.mfic.redrawChart();
/* 608 */       this.ccic.redrawChart();
/* 609 */       this.rsic.redrawChart();
/* 610 */       this.wrc.redrawChart();
/* 611 */       this.dmic.redrawChart();
/* 612 */       this.bbic.redrawChart();
/* 613 */       this.cstickc.redrawChart();
/* 614 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */ 
/* 616 */       this.chgParmDialog.dispose();
/*     */     }
/*     */ 
/* 620 */     if (paramActionEvent.getSource() == this.chgParmCancel)
/*     */     {
/* 622 */       this.chgParmDialog.dispose();
/*     */     }
/*     */ 
/* 626 */     if (paramActionEvent.getSource() == this.defaultParms)
/*     */     {
/* 628 */       this.cstickc.setDefaultParms();
/* 629 */       this.bc.setDefaultParms();
/* 630 */       this.vc.setDefaultParms();
/* 631 */       this.bbic.setDefaultParms();
/* 632 */       this.macdc.setDefaultParms();
/* 633 */       this.ppoc.setDefaultParms();
/* 634 */       this.stochc.setDefaultParms();
/* 635 */       this.rocc.setDefaultParms();
/* 636 */       this.efic.setDefaultParms();
/* 637 */       this.pvtc.setDefaultParms();
/* 638 */       this.obvc.setDefaultParms();
/* 639 */       this.mfic.setDefaultParms();
/* 640 */       this.ccic.setDefaultParms();
/* 641 */       this.rsic.setDefaultParms();
/* 642 */       this.wrc.setDefaultParms();
/* 643 */       this.dmic.setDefaultParms();
/*     */     }
/*     */ 
/* 648 */     if (paramActionEvent.getSource() == this.chgParmButton[0])
/*     */     {
/* 650 */       this.bc.showChgParmDialog();
/* 651 */       this.bbic.redrawChart();
/* 652 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 656 */     if (paramActionEvent.getSource() == this.chgParmButton[1])
/*     */     {
/* 658 */       this.macdc.showChgParmDialog();
/* 659 */       this.bbic.redrawChart();
/* 660 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 664 */     if (paramActionEvent.getSource() == this.chgParmButton[2])
/*     */     {
/* 666 */       this.ppoc.showChgParmDialog();
/* 667 */       this.bbic.redrawChart();
/* 668 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 672 */     if (paramActionEvent.getSource() == this.chgParmButton[3])
/*     */     {
/* 674 */       this.stochc.showChgParmDialog();
/* 675 */       this.bbic.redrawChart();
/* 676 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 680 */     if (paramActionEvent.getSource() == this.chgParmButton[4])
/*     */     {
/* 682 */       this.rocc.showChgParmDialog();
/* 683 */       this.bbic.redrawChart();
/* 684 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 688 */     if (paramActionEvent.getSource() == this.chgParmButton[5])
/*     */     {
/* 690 */       this.efic.showChgParmDialog();
/* 691 */       this.bbic.redrawChart();
/* 692 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 696 */     if (paramActionEvent.getSource() == this.chgParmButton[6])
/*     */     {
/* 698 */       this.pvtc.showChgParmDialog();
/* 699 */       this.bbic.redrawChart();
/* 700 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 704 */     if (paramActionEvent.getSource() == this.chgParmButton[7])
/*     */     {
/* 706 */       this.obvc.showChgParmDialog();
/* 707 */       this.bbic.redrawChart();
/* 708 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 712 */     if (paramActionEvent.getSource() == this.chgParmButton[8])
/*     */     {
/* 714 */       this.mfic.showChgParmDialog();
/* 715 */       this.bbic.redrawChart();
/* 716 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 720 */     if (paramActionEvent.getSource() == this.chgParmButton[9])
/*     */     {
/* 722 */       this.ccic.showChgParmDialog();
/* 723 */       this.bbic.redrawChart();
/* 724 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 728 */     if (paramActionEvent.getSource() == this.chgParmButton[10])
/*     */     {
/* 730 */       this.rsic.showChgParmDialog();
/* 731 */       this.bbic.redrawChart();
/* 732 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 736 */     if (paramActionEvent.getSource() == this.chgParmButton[11])
/*     */     {
/* 738 */       this.wrc.showChgParmDialog();
/* 739 */       this.bbic.redrawChart();
/* 740 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 744 */     if (paramActionEvent.getSource() == this.chgParmButton[12])
/*     */     {
/* 746 */       this.dmic.showChgParmDialog();
/* 747 */       this.bbic.redrawChart();
/* 748 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */ 
/* 752 */     if (paramActionEvent.getSource() == this.chgParmButton[13])
/*     */     {
/* 754 */       this.bbic.showChgParmDialog();
/* 755 */       this.cstickc.updateSummary(this.bbic.getNoOfBullish(this.sq.count - 1));
/*     */     }
/*     */   }
/*     */ }

/* Location:           C:\Users\Deebak\Downloads\profitindicatorsv2-05.jar
 * Qualified Name:     MainPanel
 * JD-Core Version:    0.6.0
 */